package brands

import "gitee.com/theegg/go-brick/app/service/app"

// 获取所有的菜单
func GetAllBrands() (map[int64]Brands, error) {
	items := make(map[int64]Brands)

	err := app.Db().Where("status = ?", 1).Find(&items)
	if err != nil {
		return items, err
	}

	return items, err
}
